package com.suhui.task.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.PositiveOrZero;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Member_Progress {
    private String id;
    @Digits(integer = 8, fraction = 0, message = "id必须为8位数字")
    private String member_id;
    private String progress_id;
    @Pattern(regexp = "^\\d{4}年-\\d{1,2}周$", message = "输入内容格式不正确")
    private String year_week;
    @Pattern(regexp = "^[0-7]$",message = "每周请假次数0-7")
    private int ask_for_leave;
}
